#include "Cube.h"

Cube* Cube::Create()
{
  return new Cube;
}

void Cube::Destroy(Cube* objPtr)
{
  delete objPtr;
}

Cube::Cube()
{
  GLfloat vertex[]=
  {
    -1.0f, -1.0f, 1.0f,
    1.0f, -1.0f, 1.0f,
    1.0f,  1.0f, 1.0f,
    -1.0f,  1.0f, 1.0f,

    -1.0f, -1.0f, -1.0f,
    1.0f, -1.0f, -1.0f,
    1.0f,  1.0f, -1.0f,
    -1.0f,  1.0f, -1.0f
  };

  GLfloat normal[12]={0}; // ??

  GLfloat index[14]={0}; // ??

  _vtxCnt = 8;
  _idxCnt = 14; // ??

  //...
}

Cube::~Cube()
{
}

void Cube::Apply()
{
}

GLuint Cube::GetVertexCount() const
{
  return _vtxCnt;
}

GLuint Cube::GetIndexCount() const
{
  return _idxCnt;
}
